package com.zp.crm.dto.MarDevelopDao;

import java.text.SimpleDateFormat;
import java.util.List;

import com.zp.crm.entity.MarDevelop.MarDevelopEntity;

public class MarDevelopDto {
	
	
	public String MarText(List<MarDevelopEntity> list){
		
		SimpleDateFormat f=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		
		StringBuffer s=new StringBuffer();
		
		//int o=0;
		
		if(list.size()==0){
			s.append("<tr><td claspan='4' style='text-align:center'>暂无此计划</td></tr>");
		}
		
		for(MarDevelopEntity m : list){
			s.append("<tr><td>时间</td><td>"+f.format(m.getCreatetime())+"</td><td>计划项</td><td>"+m.getCreatecont()+"</td></tr>");
		}

		return s.toString();
	}

}
